<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    /* 
      transfrom: scale(x, y)
                 scaleX()
                 scaleY()
      如果只写一个值，表示xy都缩放对应的倍数
     */
    div {
      width: 100px;
      height: 100px;
      background: #000;
      color: #fff;
    }
  
    div:hover {
      transform: scale(2, 0.5);
    }
  </style>
</head>
<body>
  <div>文字</div>
</body>
</html>